﻿namespace Yom.Model
{
    /// <summary>
    /// 管理员实体对象
    /// 
    /// 创建: 邱柯皓 2009/01/18 23:45
    /// </summary>
    public class Admin
    {
        #region 私有成员定义
        private int _AdminID;
        private string _LoginName;
        private string _LoginPass;
        private string _UserName;
        private string _Email;
        #endregion

        #region 成员属性暴露
        /// <summary>
        /// 管理员编号
        /// </summary>
        public int AdminID { get { return this._AdminID; } set { this._AdminID = value; } }

        /// <summary>
        /// 管理员登录名
        /// </summary>
        public string LoginName { get { return this._LoginName; } set { this._LoginName = value; } }

        /// <summary>
        /// 管理员登录密码
        /// </summary>
        public string LoginPass { get { return this._LoginPass; } set { this._LoginPass = value; } }

        /// <summary>
        /// 管理员昵称
        /// </summary>
        public string UserName { get { return this._UserName; } set { this._UserName = value; } }

        /// <summary>
        /// 管理员邮箱
        /// </summary>
        public string Email { get { return this._Email; } set { this._Email = value; } }
        #endregion

        #region 构造函数
        public Admin() { }

        public Admin(int adminID, string loginName, string loginPass, string userName, string email)
        {
            this._AdminID = adminID;
            this._LoginName = loginName;
            this._LoginPass = loginPass;
            this._UserName = userName;
            this._Email = email;
        }
        #endregion
    }
}